from enum import Enum


class DotMatrixStyle(Enum):
    POSITIVE = "阳显（点亮字体）"
    NEGATIVE = "阴显（点亮背景）"

    @staticmethod
    def values():
        return tuple(f.value for f in DotMatrixStyle)

    @staticmethod
    def names():
        return tuple(f.name.lower() for f in DotMatrixStyle)

    @staticmethod
    def get_name(value):
        for k, v in DotMatrixStyle.__members__.items():
            if v.value == value:
                return k.lower()
        return None
